import { createApp } from 'vue'
// i18n （PS：导入放到 APP.vue 导入之前，因为后面我们会在 app.vue 中使用国际化内容）
import App from './App.vue'
import router from './router'
import store from './store'
// 导入全局样式
import './styles/index.scss'
// 全局组件
import Global from '@/components/Global'
// 导入 svgIcon
import 'virtual:svg-icons-register'
import SvgIcon from '@/components/SvgIcon'
import elementIcons from '@/components/SvgIcon/svgicon'
// plugins
import plugins from './plugins'
// directives
import directives from '@/directives'
//引入windiCSS
import 'virtual:windi.css'
const app = createApp(App)
// 全局组件挂载
app.component('MyGlobal', Global)
app.use(elementIcons)
app.component('svg-icon', SvgIcon)
app.use(plugins)
// directives(app)
app.use(directives)
app.use(store).use(router).mount('#app')
